#!/bin/bash
read -p "请输入您的用户名: " user
read -p "请输入您的密码: " password
user_i=`echo $user|sed 's#[a-zA-Z0-9]##g'|grep -v ^$|wc -l`
if [ $user_i -ne 0 ];then
     echo "请不要输入特殊字符..."
     echo "请不要输入特殊字符..." >>/tmp/xujun.txt
     look=`cat /tmp/xujun.txt|wc -l`
     if [ $look -gt 3 ];then
            echo "你已输入了3次，全都失败"
            > /tmp/xujun.txt
            exit 1
     fi
     exit 1
else
     echo "欢迎来到徐骏的操作系统..."
     exit 0
fi
